<!DOCTYPE html>
<html lang="zh-tw">
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="content-type">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="救命啊！我的原始碼都是亂碼了！我編譯時都是亂碼了！我執行程式時出現亂碼了！我的網頁出現亂碼了！我的資料庫出現亂碼了！...Orz">
    
    <meta property="og:locale" content="zh_TW">
<meta property="og:title" content="亂碼 1/2">
<meta property="og:type" content="article">
<meta property="og:url" content="http://openhome.cc/Gossip/Encoding/index.html">
<meta property="og:image" content="http://openhome.cc/Gossip/images/caterpillar_small.jpg">
<meta property="og:site_name" content="OPENHOME.CC">
<meta property="og:description" content="救命啊！我的原始碼都是亂碼了！我編譯時都是亂碼了！我執行程式時出現亂碼了！我的網頁出現亂碼了！我的資料庫出現亂碼了！...Orz">
    
    <title>非關語言: 亂碼 1/2</title>
    <link rel="stylesheet" href="../css/pure-0.6.0/pure-min.css">
    <!--[if lte IE 8]>
        <link rel="stylesheet" href="../css/layouts/side-menu-old-ie.css">    <![endif]-->
    <!--[if gt IE 8]><!-->
    <link rel="stylesheet" href="../css/layouts/side-menu.css">
    <!--<![endif]-->
    <link rel="stylesheet" href="../css/caterpillar.css">
    <script async src="../google-code-prettify/run_prettify.js"></script>
  </head>
  <body>
    <div id="layout">
      <!-- Menu toggle --> <a href="#menu" id="menuLink" class="menu-link">
        <!-- Hamburger icon --><span></span>  </a>
      <div id="menu">
        <div class="pure-menu"> <a class="pure-menu-heading" href="../index.html">回 OPENHOME 首頁</a>
          <ul class="pure-menu-list">
            <br><div class="social" style="text-align: center;"><a href="http://twitter.com/caterpillar"><img title="Twitter" alt="Twitter" src="http://openhome.cc/Gossip/images/twitter.png"></a> <a href="http://www.facebook.com/openhome.cc"><img title="Facebook" alt="Facebook" src="http://openhome.cc/Gossip/images/facebook.png"></a> <a href="https://plus.google.com/+JustinSDK/"><img title="Google+" alt="Google+" src="http://openhome.cc/Gossip/images/google.png"></a></div><br>
              <div id="search box"><script>(function() {var cx = 'partner-pub-9750319131714390:3926766884';var gcse = document.createElement('script');gcse.type = 'text/javascript';gcse.async = true;gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//www.google.com/cse/cse.js?cx=' + cx;var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(gcse, s);})();</script><gcse:searchbox-only></gcse:searchbox-only></div><br><div class="ad" style="text-align: center;">
                <script async="" src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                <!-- 2015 新版型 160 x 600 廣告 --> <ins class="adsbygoogle"

                  style="display:inline-block;width:160px;height:600px"

                  data-ad-client="ca-pub-9750319131714390" data-ad-slot="3747048883"></ins>
                <script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div></li>
          </ul>
        </div>
      </div>
      <div id="main">
        <div class="header">
          <h1>非關語言: 亂碼 1/2</h1>
        </div>
        <div class="content">
          <p> </p>
          <p>救命啊！我的原始碼都是亂碼了！我編譯時都是亂碼了！我執行程式時出現亂碼了！我的網頁出現亂碼了！我的資料庫出現亂碼了！...Orz</p>
          <p>別再相信哀號可以解決亂碼的問題了...XD</p>
          
                    <div class="ad-2" style="text-align: center;">
          
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 2015 新版型回應式廣告 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-9750319131714390"
     data-ad-slot="7104125683"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
          
          </div>
          <dl>
        <dt>起步</dt>
      </dl>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
文字編碼是什麼都不了解，如何解決亂碼問題？<br>
      <ul>
        <li><a href="TextFile.html">哪來的純文字檔？</a></li>
        <li><a href="UnicodeUTF.html">Unicode 與 UTF</a></li>
        <li><a href="UTF8.html">UTF-8</a><br>
          </li>
        <li><a href="SourceFile.html">你的原始碼是什麼編碼？</a><br>
          </li>
      </ul>
      <br>
      <dl>
        <dt>特定語言</dt>
      </dl>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 非關語言中有關語言的部份。<br>
      <ul>
        <li><a href="String.html">Java 的字串</a><br>
          </li>
        <li><a href="JVMEncoding.html">JVM 預設編碼</a></li>
        <li><a href="http://openhome.cc/Gossip/Ruby/Encoding.html">Ruby
的編碼</a></li>
        <li><a href="Python.html">Python 的編碼</a><br>
</li>

      </ul>
      <br>
      <dl>
        <dt>當我們來到 Web<br>
        </dt>
      </dl>
      <ul>
      </ul>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 了解文字編碼與 URL
編碼，是解決網頁亂碼的基礎。<br>
      <ul>
        <li><a href="URLEncoding.html">URL 編碼</a></li>
        <li><a href="Servlet.html">Servlet 中文處理（Tomcat）</a></li>
        <li><a href="Big5Unicode.html">Big 5 網頁難字</a></li>
        <li><a href="JSP.html">JSP 的轉譯</a></li>
        <li><a href="http://openhome.cc/Gossip/Rails/Encoding.html">Rails
的編碼</a><br>
          </li>
      </ul>
      <br>
      <dl>
        <dt>I18N<br>
          </dt>
      </dl>
      <ul>
      </ul>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 從 Java 的
ResourceBundle 與 JSTL i18N 相容格式標籤，以及 Rails 的 i18n 方案，了解國際化議題。<br>
      <ul>
        <li><a href="ResourceBundle.html">關於 ResourceBundle</a></li>
        <li><a href="MessageTag.html">訊息標籤</a></li>
        <li><a href="LocaleTag.html">地區標籤</a></li>
        <li><a href="FormatTag.html">格式標籤</a></li>
        <li><a href="http://openhome.cc/Gossip/Rails/i18n.html">簡介 Rails
i18n</a><br>
          </li>
      </ul>
      <ul>
      </ul>
      <br>
      <dl>
        <dt>JavaScript<br>
        </dt>
      </dl>
      <ul>
      </ul>
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 舊系統、舊網頁再加上
JavaScript/Ajax，亂碼層出不窮？<br>
      <ul>
        <li><a href="JavaScript.html">JavaScript 編碼基礎</a><br>
        </li>
        <li><a href="Ajax.html">Ajax 請求與回應</a><br>
        </li>
        <li><a href="JSPHTMLJavaScript.html">JSP、HTML 與
JavaScript</a></li>
      </ul>
<div class="recommend" style="text-align: center;">
          <hr>
          <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- 自動大小回應相符內容 -->
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-9750319131714390"
     data-ad-slot="4953478487"
     data-ad-format="autorelaxed"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div> 

        </div>
      </div>
    </div>
  </body>
  <script src="../js/ui.js"></script>
</html>
<div class="analytics">
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-143766-1', 'auto');
  ga('send', 'pageview');

</script>
</div>